<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>课程列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="__PUBLIC__/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/admin.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/public.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="__PUBLIC__/css/looklayer.css"  media="all">
    <style>
        .layui-layer-setwin .layui-layer-close2  {
            position: relative !important;
            right: 0!important;
            top:0 !important;
        }

    </style>
</head>
<body>
<div class="layui-conter">
    <div class="layui-col-md12">
        <div class="navigation">
            <span>教务></span><span>课程列表</span>
        </div>

        <div class="white-conter">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="title-blue">课程列表</div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <table  class="layui-hide" id="test-table-operate" lay-filter="test-table-operate"></table>
                            <div class="layui-form layui-border-box layui-table-view" lay-filter="LAY-table-1">
                                <div class="layui-table-box" style="margin-bottom: 20px">
                                    <div class="layui-table-body layui-table-main">
                                        <table cellspacing="0" cellpadding="0" border="0" class="layui-table">
                                            <thead>
                                            <tr>
                                                <th data-field="id">
                                                    <div class="layui-table-cell">
                                                        <span>上课日期</span>
                                                        </span>
                                                    </div>
                                                </th>
                                                <th data-field="username">
                                                    <div class="layui-table-cell " align="center">
                                                        <span>班主任</span>
                                                    </div>
                                                </th>
                                                <th data-field="source">
                                                    <div class="layui-table-cell" align="center">
                                                        <span>授课老师</span>
                                                    </div>
                                                </th>
                                                <th data-field="course">
                                                    <div class="layui-table-cell" align="center">
                                                        <span>课程</span>
                                                    </div>
                                                </th>
                                                <th data-field="ad">
                                                    <div class="layui-table-cell" align="center">
                                                        <span>上课时间段</span>
                                                    </div>
                                                </th>
                                                <th data-field="operation">
                                                    <div class="layui-table-cell" align="center">
                                                        <span>操作</span>
                                                    </div>
                                                </th>
                                            </tr>
                                            </thead>
                                            <tbody>
																						<foreach name="data" item="d">
                                            <tr data-index="0" class="">
                                                <td data-field="id" align="center">
                                                    <div class="layui-table-cell">{$d.time}</div>
                                                </td>
                                                <td data-field="username" align="center">
                                                    <div class="layui-table-cell">{$d.teacher_name} </div>
                                                </td>
                                                <td data-field="source" align="center">
                                                    <div class="layui-table-cell ">{$d.headmaster_name}</div>
                                                </td>
                                                <td data-field="course" align="center">
                                                    <div class="layui-table-cell">
                                                        {$d.cname}
                                                    </div>
                                                </td>
																								<td data-field="course" align="center">
																										<div class="layui-table-cell">
																												{$d.slot_name}
																										</div>
																								</td>
                                                <td data-field="operation" align="center">
                                                    <div class="layui-table-cell ">
                                                        <button data-method="offset" data-type="auto" onclick="window.location.href='{:U('Classsetting/schedule_show?id='.$d['id'])}'"  class="img-but edit-img"></button>
                                                     </div>
                                                </td>
                                            </tr>
																						</foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="layui-table-page">
                                    <div id="layui-table-page1">
                                        <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1">
                                            {$page}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>
</div>
</body>
<script src="__PUBLIC__/js/layui.all.js"></script>
</html>